package messagepasser;

/**
 * 
 * @author Rishit Shroff(rshroff)
 * @author Huimin Yang(huiminy)
 * @description Contains the definition of the header class
 */

import java.io.Serializable;

/**
 * 
 * Header is part of a message, 
 * it contains the name of the destination, the class of the message and the id of the message
 *
 */
public class Header implements Serializable{
	public String getMsg_class() {
		return msg_class;
	}

	public void setMsg_class(String msgClass) {
		msg_class = msgClass;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	private String dest;
	private String src;
	private String msg_class;
	private String id;
	
	public Header(String dest, String src, String msg_class, String id) {
		this.dest = dest;
		this.src = src;
		this.msg_class = String.copyValueOf(msg_class.toCharArray());
		this.id = id;
	}
	
	public String getDest() {
		return dest;
	}

	public void setDest(String dest) {
		this.dest = dest;
	}

	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public String getMsgClass() {
		return msg_class;
	}
	
	public String getID() {
		return id;
	}
}
